<?php
function theme_widget_site_search(&$setting,&$smarty){
    $ddef_key = app::get('search')->getConf('search_key');
	$default_key = $setting['default_key'];
	$data['def_key'] = $ddef_key?$ddef_key:$default_key;	
	//print_r($setting);exit;
	if (is_array($setting['hots'])) {
		foreach($setting['hots'] as $k =>$v){
			$data['search'][] = $v;
		}
	}
    return $data;
}
?>